package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.InviteRecord;
import com.ruoyi.common.core.domain.entity.PrizePool;
import com.ruoyi.common.core.domain.entity.UserPrizeRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 参数配置 数据层
 *
 * @author ruoyi
 */
@Mapper
@Repository
public interface PrizePoolMapper extends BaseMapper<PrizePool> {
    /**
     * 添加奖池
     */
    void insertPrizePool(PrizePool prizePool);

    /**
     * 修改奖池
     */
    void updatePrizePool(PrizePool prizePool);

    /**
     * 查询奖池配置
     */
    List<PrizePool> selectPrizePoolList(@Param("level") Integer level);

    /**
     * 根据id查询奖池详情
     */
    PrizePool selectPrizePoolById(Long id);

}
